{include file="public/admin_head.html"}
<style>
.table{
	width:100%;
}

.table tbody tr td{
	text-align:left;
}

input[type="checkbx"] {
	vertical-align: top;
	margin-left:20px
}
</style>

<body>
<script>
function delete_authority(id){
	if(confirm("确定要删除吗？")){
		window.location.href = "./index.php?act=menu&st=menuDelete&menuid="+id;
	}
}

</script>

<ul class="breadcrumb">
	<li>
		<a href="./index.php?act=admin&st=main">首页</a> <span class="divider">/</span>
	</li>
	<li class="active">
		<a href="./index.php?act=admin&st=adminLogoutAction">退出登录</a>       
    </li>
</ul>

	<fieldset>
	<legend>
		<B>栏目管理列表</B>
		<span style="float:right;margin-right:20px">
			<a href="./index.php?act=topic&st=topicAdd" class="btn btn-primary">添加栏目</a>
		</span>		
	</legend>
	</fieldset>
	<table class="table table-bordered table-striped" align="center" style="width:80%">
		<tr>
			<th style="width: 100px;">栏目ID</th>
			<th style="width: 500px;">栏目标题</th>
			<th>操作</th>
			
		</tr>
{foreach name=outer item=contact from=$allinfo}	
		<tr>
			<td style="text-align:center">{$contact.id}</td>
			<td style="text-align:center">{$contact.topic_name}</td>
			<td style="text-align:center">
				<a class="btn" href="/index.php?act=topic&st=topicEdit&id={$contact.id}">编辑</a>
				<button class="btn btn-warning" type="button" onclick="return itemdel('{$contact.id}', './index.php?act=topic&st=topicDelete');">删除</button>
			</td>
		 </tr>
{/foreach}	
		<table  width="100%">
			<tr>
				<td class="form-actions pagination" align="center">{$pageShow}</td>
			</tr>
		</table>
	</table>		

{include file="public/admin_foot.html"}
